package cn.miao.hrm.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @program: springcloud-hrm
 * @description: 发送短信校验码
 * @author: MiaoWei
 * @create: 2021-12-02 18:48
 **/
@NoArgsConstructor
@Data
public class SendSMSCode {

    /**
     * 电话号码
     */
    @Pattern(regexp = "^(?:(?:\\+|00)86)?1[3-9]\\d{9}$",message = "请输入正确的手机号规则!")
    private String mobile;
    /**
     * 图片校验码
     */
    @NotBlank(message = "图片校验码不能为空!")
    private String imageCode;
    /**
     * 图片的key
     */
    @NotBlank(message = "非法请求")
    private String imageCodeKey;
}
